<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 与一假则假
        console.log(true && true);
        console.log(false && false);
        console.log(3 < 5 && 3 > 2);
        console.log(3 < 5 && 2 > 3);

        console.log(`<!-- ----------------------------------------------------------------------- -->`);

        // 或 一真则真
        console.log(true || true);
        console.log(false || true);
        console.log(false || false);


        console.log(`<!-- ----------------------------------------------------------------------- -->`);

        // 非 取反
        console.log(!true);
        console.log(!false);

        
        console.log(`<!-- ----------------------------------------------------------------------- -->`);

        let num = 6
        console.log(num > 5 && num < 10);
    </script>
</body>

</html>